Method for device control, electronic device, and storage medium

ABSTRACT

A method, an electronic device, and a storage medium are provided. The method for device control can include the following. A first gesture is received, where the first gesture matches a preset trigger gesture. At least one icon is displayed on a touch display screen, where each icon represents one window mode. An end position of the first gesture is obtained. A window mode represented by a target icon in the at least one icon is determined as a target window mode, upon detecting that the end position of the first gesture is at a display position of the target icon. Information of a target application is obtained, and the information of the target application is displayed in the target window mode, where the target application is an application corresponding to information displayed on the touch display screen when the first gesture is received.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation of International Application No.PCT/CN2021/097697, filed Jun. 1, 2021, which claims priority to ChinesePatent Application No. 202010658123.X, filed Jul. 9, 2020, the entiredisclosures of which are incorporated herein by reference.

TECHNICAL FIELD

The disclosure relates to the technical field of electronic devices, andin particular, to a method for device control, an electronic device, anda storage medium.

BACKGROUND

With technology development, the way of human-computer interaction isbecoming more and more diverse. For example, the user can interact withthe electronic device by touching the display screen or via voicecontrol, etc.

SUMMARY

In a first aspect, implementations of the disclosure provide a methodfor device control. The method is applied to an electronic device with atouch display screen and includes the following. A first gesture isreceived, where the first gesture matches a preset trigger gesture. Atleast one icon is displayed on the touch display screen, where each iconrepresents one window mode. An end position of the first gesture isobtained. A window mode represented by a target icon in the at least oneicon is determined as a target window mode, upon detecting that the endposition of the first gesture is at a display position of the targeticon. Information of a target application is obtained, and theinformation of the target application is displayed in the target windowmode, where the target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

In a second aspect, implementations of the disclosure provide anelectronic device. The electronic device includes a touch displayscreen, a memory configured to store computer programs, a processorconfigured to invoke the computer programs stored in the memory to:receive a first gesture, where the first gesture matches a presettrigger gesture, display, on the touch display screen, at least oneicon, where each icon represents one window mode, obtain an end positionof the first gesture, determine a window mode represented by a targeticon in the at least one icon as a target window mode, upon detectingthat the end position of the first gesture is at a display position ofthe target icon, and obtain information of a target application, anddisplay the information of the target application in the target windowmode, where the target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

In a third aspect, implementations of the disclosure provide a storagemedium. The storage medium stores computer programs, which when executedon a computer, cause the computer to: receive a first gesture, where thefirst gesture matches a preset trigger gesture, display at least oneicon on the touch display screen, where each icon represents one windowmode, obtain an end position of the first gesture, determine a windowmode represented by a target icon in the at least one icon as a targetwindow mode, upon detecting that the end position of the first gestureis at a display position of the target icon, and obtain information of atarget application, and display the information of the targetapplication in the target window mode, where the target application isan application corresponding to information displayed on the touchdisplay screen when the first gesture is received.

BRIEF DESCRIPTION OF THE DRAWINGS

The technical solutions and other beneficial effects of the disclosurewill be apparent through the detailed description of the specificimplementations of the disclosure in conjunction with the accompanyingdrawings.

FIG. 1 is a schematic flowchart of a method for device control providedin implementations of the disclosure.

FIG. 2 is another schematic flowchart of a method for device controlprovided in implementations of the disclosure.

FIGS. 3 to 12 are schematic diagrams illustrating various scenarios of amethod for device control provided in implementations of the disclosure.

FIG. 13 is a schematic structural diagram of an apparatus for devicecontrol provided in implementations of the disclosure.

FIG. 14 is a schematic structural diagram of an electronic deviceprovided in implementations of the disclosure.

FIG. 15 is another schematic structural diagram of an electronic deviceprovided in implementations of the disclosure.

DETAILED DESCRIPTION

Referring to the drawings, same component symbols represent samecomponents. The principle of the disclosure is illustrated byimplementation in an appropriate computing environment. The followingdescription is based on the illustrated specific implementations of thedisclosure, which should not be considered as limiting other specificimplementations not detailed herein.

It can be understood that, implementations of the disclosure may beimplemented by an electronic device such as a smart phone or a tabletcomputer.

Implementations of the disclosure provide a method for device control.The method is applied to an electronic device with a touch displayscreen and includes the following. Information of a first gesture isreceived. Specifically, the first gesture is received. At least one iconis displayed on condition that the first gesture includes a presettrigger gesture, where each icon represents one window mode, and thepreset trigger gesture is preset in advance. Specifically, the at leastone icon is displayed on the touch display screen, where each iconrepresents one window mode. A gesture end position of the first gestureis obtained. Specifically, an end position of the first gesture isobtained. A window mode represented by an icon is determined as a targetwindow mode, upon detecting that the gesture end position of the firstgesture is at a display position of the icon. Specifically, a windowmode represented by a target icon in the at least one icon is determinedas a target window mode, upon detecting that the end position of thefirst gesture is at a display position of the target icon. Informationof a target application is obtained, and the information of the targetapplication is displayed in the target window mode, where the targetapplication is an application corresponding to information displayed onthe touch display screen when the first gesture is received.

In an implementation, the first gesture includes a first gesture-segmentand a second gesture-segment, the first gesture-segment occurs beforethe second gesture-segment, the first gesture-segment and the secondgesture-segment have a continuous gesture trajectory, and the firstgesture including the preset trigger gesture includes: the firstgesture-segment matching the preset trigger gesture. In other words, thefirst gesture matches the preset trigger gesture when the firstgesture-segment matches the preset trigger gesture.

In an implementation, the icon displayed by the electronic deviceincludes at least a first icon, and a first window mode represented bythe first icon includes: determining a first target area on the touchdisplay screen, and displaying in the first target area a scaled downrunning interface of the target application. Specifically, the at leastone icon includes a first icon, the target icon is the first icon, thefirst icon represents a first window mode, and the information of thetarget application is displayed in the target window mode as follows. Ascaled down running interface of the target application is displayed ina first target area corresponding to the first window mode in the firstwindow mode.

In an implementation, the icon displayed by the electronic devicefurther include at least a second icon, and a second window moderepresented by the second icon includes: determining a second targetarea on the touch display screen, and displaying in the second targetarea the information of the target application, where an area of thesecond target area is smaller than an area of the first target area.Specifically, the at least one icon includes a first icon and a secondicon, the target icon is the second icon, the first icon represents afirst window mode, the second icon represents a second window mode, andthe information of the target application is displayed in the targetwindow mode as follows. The information of the target application isdisplayed in a second target area corresponding to the second windowmode in the second window mode, where an area of the second target areais smaller than an area of a first target area corresponding to thefirst window mode.

In an implementation, the second window mode represented by the secondicon includes: determining the second target area on the touch displayscreen, and displaying in the second target area customized informationof the target application. Specifically, the information of the targetapplication is displayed in the target window mode as follows. Thecustomized information of the target application is displayed in thesecond target area corresponding to the second window mode in the secondwindow mode.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture include a touch operation performedon the touch display screen, specifically, the first gesture-segment andthe second gesture-segment are each touch operations performed on thetouch display screen, and the first gesture-segment and the secondgesture-segment having the continuous gesture trajectory includes: thefirst gesture-segment and the second gesture-segment having a continuoustouch trajectory on the touch display screen.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture each include an air gesture,specifically, the first gesture-segment and the second gesture-segmentare each touch operations performed on the touch display screen, and thefirst gesture-segment and the second gesture-segment having thecontinuous gesture trajectory includes: the first gesture-segment andthe second gesture-segment having a continuous air gesture trajectory.

In an implementation, the at least one icon is displayed on conditionthat the first gesture-segment matches the preset trigger gesture asfollows. Determine that the first gesture-segment matches the presettrigger gesture and display the at least one icon, on condition that amotion of the first gesture-segment is the same as a motion of thepreset trigger gesture and a trajectory length of the firstgesture-segment is greater than or equal to a first preset length, wherethe first preset length is preset in advance. In other words, the firstgesture-segment matches the preset trigger gesture when a motion of thefirst gesture-segment is the same as a motion of the preset triggergesture and a trajectory length of the first gesture-segment is greaterthan or equal to a first preset length.

In an implementation, the preset trigger gesture starts at an edge ofthe touch display screen.

In an implementation, the method for device control further includes thefollowing. A displayed running interface of the target application isscaled down to a preset size gradually, from receiving the first gestureuntil the first gesture ends.

In an implementation, the method for device control further includes thefollowing. The gradually scaled down running interface of the targetapplication is moved in a preset direction.

In an implementation, the method for device control further includes thefollowing. A preview of a window mode represented by an icon isdisplayed at a preset position of the touch display screen, on conditionthat the first gesture pauses at a display position of the icon, beforethe first gesture ends.

In an implementation, the method for device control further includes thefollowing. Information of a second gesture is received. A multi-taskmanagement interface is entered, on condition that a motion of thesecond gesture is the same as the motion of the preset trigger gestureand a trajectory length of the second gesture is less than the firstpreset length and greater than a second preset length. The second presetlength is preset in advance.

Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method fordevice control provided in implementations of the disclosure. The methodmay be applied to an electronic device with a touch display screen andinclude the following.

101. Information of a first gesture is received. Specifically, the firstgesture is received, where the first gesture matches a preset triggergesture.

With technology development, the way of human-computer interaction isbecoming more and more diverse. For example, the user can interact withthe electronic device by touching the display screen or via voicecontrol, etc. However, in the related art, the operability of theelectronic device is still low during interaction.

In implementations of the disclosure, for example, the electronic devicemay receive a gesture from a user. For example, the gesture is recordedas the first gesture. That is, the electronic device may receive theinformation of the first gesture.

102. At least one icon is displayed on condition that the first gestureincludes a preset trigger gesture, where each icon represents one windowmode. Specifically, the at least one icon is displayed on the touchdisplay screen, each icon represents one window mode.

For example, when receiving the information of the first gesture, theelectronic device may detect whether the first gesture includes thepreset trigger gesture.

It should be noted that, in these implementations, the first gesture isa complete and coherent gesture. The first gesture is, for example, atouch operation on the touch display screen. The first gesture being acomplete and coherent gesture may mean that during making the firstgesture, the finger of the user always keeps in contact with the touchdisplay screen without leaving the touch display screen.

Then, the first gesture including the preset trigger gesture may meanthat, for example, when the first gesture is decomposed into multiplegesture-segments, one gesture-segment of the first gesture matches thepreset trigger gesture. For example, the first gesture is decomposedinto two gesture-segments, i.e., a former gesture-segment and a lattergesture-segment, then if the former gesture-segment matches the presettrigger gesture, the first gesture can be considered to include thepreset trigger gesture, if the latter gesture-segment matches the presettrigger gesture, the first gesture can also be considered to include thepreset trigger gesture. However, if the former gesture-segment and thelatter gesture-segment both fails to match the preset trigger gesture,the first gesture does not include the preset trigger gesture.

The electronic device may perform other operations if the first gesturedoes not include the preset trigger gesture.

The electronic device may trigger the touch display screen of theelectronic device to display at least one icon if the first gestureincludes the preset trigger gesture, where each icon may represent awindow mode.

It should be noted that, the window mode may mean that the electronicdevice can create a window on the display screen, and display in thewindow information that the user wants to display, such as a runninginterface of an application specified by the user, or information of acurrently running application, such as a foreground application, etc.

103. A gesture end position of the first gesture is obtained.Specifically, an end position of the first gesture is obtained.

For example, after displaying the at least one icon, the electronicdevice may further obtain the gesture end position of the first gestureupon detecting that the first gesture ends.

After obtaining the gesture end position of the first gesture, theelectronic device can detect whether the gesture end position of thefirst gesture is at a display position of a certain icon.

It should be noted that, the gesture end position of the first gesturebeing at the display position of a certain icon may mean that, forexample, a display position of a certain icon is position A, if thegesture end position of the first gesture is also position A, thegesture end position of the first gesture is at the display position ofthe icon. For example, if the first gesture is a touch operation on thetouch display screen, a touch position of the last touch operation isthe gesture end position of the first gesture. For example, if thefinger of the user slides to position A of the touch display screen andthen leaves the touch display screen, the touch position of the lasttouch operation is position A. If a display position of a certain iconis also position A, the gesture end position of the first gesture is atthe display position of the icon.

The electronic device may perform other operations upon detecting thatthe gesture end position of the first gesture is not at a displayposition of any icon.

Proceed to 104 upon detecting that the gesture end position of the firstgesture is at a display position of a certain icon.

104. A window mode represented by an icon is determined as a targetwindow mode, upon detecting that the gesture end position of the firstgesture is at a display position of the icon. Specifically, a windowmode represented by a target icon in the at least one icon is determinedas the target window mode, upon detecting that the end position of thefirst gesture is at the display position of the target icon.

For example, if the electronic device detects that the gesture endposition of the first gesture is at a display position of a certainicon, the electronic device may determine a window mode represented bythe icon as the target window mode.

For example, the electronic device displays two icons on the touchdisplay screen, i.e., a first icon and a second icon. If the electronicdevice detects that the gesture end position of the first gesture is ata display position of the first icon, the electronic device maydetermine a window mode represented by the first icon as the targetwindow mode.

105. Information of a target application is obtained, and theinformation of the target application is displayed in the target windowmode, where the target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

For example, after determining the target window mode, the electronicdevice can obtain the information of the target application, and displaythe information of the target application in the target window mode,where the target application is the application corresponding to theinformation displayed on the touch display screen when the first gestureis received.

For example, a running interface of car-hailing application Y isdisplayed on the touch display screen when the first gesture isreceived. After the target window mode is determined, the electronicdevice may display information of car-hailing application Y in thetarget window mode.

In implementations of the disclosure, different window modes may differin window size, window area, window position, and the like.

It can be understood that, in implementations of the disclosure, theelectronic device may receive the information of the first gesture, anddisplay the at least one icon upon detecting that the first gestureincludes the preset trigger gesture, where each icon represents onewindow mode. Then, the electronic device may obtain the gesture endposition of the first gesture. When the gesture end position of thefirst gesture is at a display position of a certain icon, the electronicdevice may determine the window mode represented by the icon as thetarget window mode. Then, the electronic device may display theinformation of the target application in the target window mode, wherethe target application is the application corresponding to theinformation displayed on the touch display screen when the first gestureis received. In implementations of the disclosure, the electronic devicecan display the information of the target application in thecorresponding window mode when the first gesture including the presettrigger gesture is received. Therefore, the electronic device canquickly enter a certain window mode. That is, with implementations ofthe disclosure, the operability of the electronic device can beimproved.

Referring to FIG. 2 , FIG. 2 is another schematic flowchart of a methodfor device control provided in implementations of the disclosure. Themethod may be applied to an electronic device with a touch displayscreen and include the following.

201. Information of a first gesture is received.

For example, in these implementations, the gesture includes a touchoperation performed by the user on the touch display screen.

For example, as illustrated in FIG. 3 , a running interface ofcar-hailing application Y is currently displayed on the touch displayscreen of the electronic device. At this time, a touch gesture isperformed by the user on the touch display screen. That is, theelectronic device may receive information of the touch gesture from theuser and record the touch gesture as the first gesture.

When receiving the first gesture, the electronic device may detectwhether the first gesture includes a preset trigger gesture.

It should be noted that, in these implementations, the first gesture isa complete and coherent gesture. The first gesture is, for example, atouch operation on the touch display screen. The first gesture being acomplete and coherent gesture may mean that during making the firstgesture, the finger of the user always keeps in contact with the touchdisplay screen without leaving the touch display screen.

Then, the first gesture including the preset trigger gesture may meanthat, for example, when the first gesture is decomposed into multiplegesture-segments, one gesture-segment of the first gesture matches thepreset trigger gesture.

For example, in an implementation, the first gesture is decomposed intoa first gesture-segment and a second gesture-segment, the firstgesture-segment occurs before the second gesture-segment, and the firstgesture-segment and the second gesture-segment have a continuous gesturetrajectory.

Then, the first gesture including the preset trigger gesture mayinclude: the first gesture-segment matching the preset trigger gesture.In other words, the first gesture matches the preset trigger gesturewhen the first gesture-segment matches the preset trigger gesture.

The electronic device may perform other operations if the first gesturedoes not include the preset trigger gesture.

Proceed to 202 if the first gesture includes the preset trigger gesture.

202. A first icon and a second icon are displayed on condition that thefirst gesture includes a preset trigger gesture, where a first windowmode represented by the first icon includes: determining a first targetarea on the touch display screen, and displaying in the first targetarea a scaled down running interface of the target application, and asecond window mode represented by the second icon includes: determininga second target area on the touch display screen, and displaying in thesecond target area customized information of the target application. Anarea of the second target area is smaller than an area of the firsttarget area. The target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

For example, the preset trigger gesture is a slide-up operation startingfrom the bottom of the touch display screen, and a slide trajectorycorresponding to the slide-up operation reaches a first preset length.Then, if the first gesture-segment of the first gesture received by theelectronic device from the user is a slide-up operation starting fromthe bottom of the touch display screen, and a slide trajectory of theslide-up operation reaches the first preset length, it is determinedthat the received first gesture includes the preset trigger gesture. Atthis time, the electronic device may be triggered to display on thedisplay screen of the electronic device two icons, i.e., the first iconand the second icon. The first window mode represented by the first iconincludes: determining the first target area on the touch display screen,and displaying in the first target area the scaled down runninginterface of the target application. The second window mode representedby the second icon includes: determining the second target area on thetouch display screen, and displaying in the second target area thecustomized information of the target application. The area of the secondtarget area is smaller than the area of the first target area. Thetarget application is the application corresponding to the informationdisplayed on the touch display screen when the first gesture isreceived.

In an implementation, the customized information of the targetapplication displayed in the second window mode may be the latestnotification information or other information of the target application.For example, if the target application is an instant messagingapplication, the latest notification information of the instantmessaging application may be displayed in the second window mode.Alternatively, if the target application is a map navigationapplication, information of the current location of the user and thelike may be displayed in the second window mode. That is, the specificcustomized information to be displayed can be determined according tothe type of the application or user requirements, which is not limitedherein.

For example, as illustrated in FIG. 4 , a running interface ofcar-hailing application Y is currently displayed on the display screen,then car-hailing application Y is the target application. On the runninginterface of car-hailing application Y, the finger of the user slides onthe touch display screen from bottom position B (see the position of theblack dot in FIG. 4 ) of the display screen to position C (see theposition of the black dot in FIG. 4 ). The distance dl between positionB and position C is equal to the first preset length. At this time, theelectronic device determines that the received first gesture includesthe preset trigger gesture, and triggers the display screen to displaytwo icons, i.e., the first icon and the second icon, where the firstwindow mode represented by the first icon may be referred to as a smallwindow mode, and the second window mode represented by the second iconmay be referred to as a flash window mode. In the small window mode, thescaled down running interface of the target application may be displayedin the first target area on the display screen. In the flash windowmode, the customized information of the target application may bedisplayed in the second target area on the display screen. The windowarea in the flash window mode is smaller than the window area in thesmall window mode.

In other implementations, the preset trigger gesture may also be othergestures. For example, the preset trigger gesture may be a slide-downoperation starting from the top of the touch display screen, and a slidetrajectory corresponding to the slide-down operation reaches a firstpreset length. Alternatively, the preset trigger gesture may be aslide-right operation starting from the left edge of the touch displayscreen, and a slide trajectory corresponding to the slide-rightoperation reaches a first preset length. Alternatively, the presettrigger gesture may be a slide-left operation starting from the rightedge of the touch display screen, and a slide trajectory correspondingto the slide-left operation reaches a first preset length, etc.

That is, in implementations of the disclosure, when the first gesture isdecomposed into the first gesture-segment and the secondgesture-segment, the matching between the first gesture-segment and thepreset trigger gesture may include that a motion of the firstgesture-segment is the same as a motion of the preset trigger gestureand a trajectory length of the first gesture-segment is greater than orequal to the first preset length. The motion of the firstgesture-segment being the same as the motion of the preset triggergesture may mean that, for example, the first gesture-segment is aslide-up operation, and the preset trigger gesture is also a slide-upoperation, or the first gesture-segment is a slide-down operation, andthe preset trigger gesture is also a slide-down operation, etc.

In an implementation, the preset trigger gesture may start at an edge ofthe touch display screen. For example, the preset trigger gesture startsat the bottom edge, the top edge, the left edge, or the right edge ofthe touch display screen. For example, the preset trigger gesture startsat the bottom edge of the touch display screen, the preset triggergesture is a slide-up operation starting from the bottom edge of thetouch display screen and the slide distance of the slide-up operation isgreater than or equal to the first preset length. For another example,the preset trigger gesture starts at the top edge of the touch displayscreen, the preset trigger gesture is a slide-down operation startingfrom the top edge of the touch display screen and the slide distance ofthe slide-down operation is greater than or equal to the first presetlength, etc.

203. A gesture end position of the first gesture is obtained.

204. A window mode represented by an icon is determined as a targetwindow mode, upon detecting that the gesture end position of the firstgesture is at a display position of the icon.

205. Information of a target application is obtained, and theinformation of the target application is displayed in the target windowmode.

For example, 203, 204, 205 may include the following.

After the first icon and the second icon are displayed, if the finger ofthe user does not leave the touch display screen, the user may continueto make a touch gesture on the touch display screen.

The electronic device may obtain the gesture end position of the firstgesture and detect whether the gesture end position of the first gestureis at a display position of a certain icon, upon detecting that thefirst gesture ends.

It should be noted that, the gesture end position of the first gesturebeing at the display position of a certain icon may mean that, forexample, a display position of a certain icon is position A, if thegesture end position of the first gesture is also position A, thegesture end position of the first gesture is at the display position ofthe icon. For example, if the first gesture is a touch operation on thetouch display screen, a touch position of the last touch operation isthe gesture end position of the first gesture. For example, if thefinger of the user slides to position A of the touch display screen andthen leaves the touch display screen, the touch position of the lasttouch operation is position A. If a display position of a certain iconis also position A, the gesture end position of the first gesture is atthe display position of the icon.

It should be noted that, when the first gesture is decomposed into thefirst gesture-segment and the second gesture-segment, the gesture endposition of the first gesture is also a gesture end position of thesecond gesture-segment.

The electronic device may perform other operations upon detecting thatthe gesture end position of the first gesture is not at a displayposition of any icon.

The electronic device may determine a window mode represented by an iconas the target window mode, upon detecting that the gesture end positionof the first gesture is at a display position of the icon. Then, theelectronic device can obtain the information of the target application,and display the information of the target application in the targetwindow mode.

For example, as illustrated in FIG. 5 , the finger of the user does notleave the touch display screen after sliding to position C, butcontinues to slide to position D (see the position of the black dot inFIG. 5 ), and leaves the touch display screen after sliding to positionD. That is, the gesture end position of the first gesture is position D.The slide trajectory starting from position B, passing through positionC, and ending at position D is continuous and position D is at thedisplay position of the first icon, therefore, the electronic device candetermine the small window mode represented by the first icon as thetarget window mode. Then, the electronic device can obtain informationof a current target application, i.e., car-hailing application Y, anddisplay the information of car-hailing application Y in the small windowmode. For example, as illustrated in FIG. 6 , the first target areadetermined by the electronic device on the touch display screen is anarea in the middle of the lower half of the display screen. Then, theelectronic device may display in the first target area the scaled downrunning interface of car-hailing application Y.

In other implementations, the first target area may also be other areasof the display screen. For example, the first target area may be in themiddle of the upper half of the display screen, in the middle of theleft two-thirds of the display screen, or in the middle of the righttwo-thirds of the display screen, etc., which is not limited herein.

It should be noted that, as illustrated in FIG. 5 , the first gesturestarts from position B, passes through position C, and ends at positionD, and has a continuous slide trajectory. In these implementations, thefirst gesture can be decomposed into a first gesture-segment and asecond gesture-segment. The first gesture-segment may be agesture-segment from position B to position C, and the secondgesture-segment may be a gesture-segment from position C to position D.As illustrated in FIG. 5 , the first gesture-segment and the secondgesture-segment have a continuous slide trajectory. That is, the fingerof the user never leaves the touch display screen during making thefirst-gesture-segment and the second-gesture-segment.

For another example, as illustrated in FIG. 7 , the finger of the userdoes not leave the touch display screen after sliding to position C, butcontinues to slide to position E (see the position of the black dot inFIG. 7 ), and leaves the touch display screen after sliding to positionE. That is, the gesture end position of the first gesture is position E.The slide trajectory starting from position B, passing through positionC, and ending at position E is continuous and position E is at thedisplay position of the second icon, therefore, the electronic devicecan determine the flash window mode represented by the second icon asthe target window mode. Then, the electronic device can obtaininformation of a current target application, i.e., car-hailingapplication Y, and display the latest notification information ofcar-hailing application Y in the flash window mode. For example, asillustrated in FIG. 8 , the second target area determined by theelectronic device on the touch display screen is an area in the upperright corner of the display screen. Then, the electronic device maydisplay in the second target area the latest notification information ofcar-hailing application Y.

In other implementations, the second target area may also be other areasof the display screen. For example, the second target area may be in theupper left corner of the display screen, in the lower left corner of thedisplay screen, or in the lower right corner of the display screen,etc., which is not limited herein.

It should be noted that, as illustrated in FIG. 7 , the first gesturestarts from position B, passes through position C, and ends at positionE, and has a continuous slide trajectory. In these implementations, thefirst gesture can be decomposed into a first gesture-segment and asecond gesture-segment. The first gesture-segment may be agesture-segment from position B to position C, and the secondgesture-segment may be a gesture-segment from position C to position E.As illustrated in FIG. 7 , the first gesture-segment and the secondgesture-segment have a continuous slide trajectory. That is, the fingerof the user never leaves the touch display screen during making thefirst-gesture-segment and the second-gesture-segment.

Moreover, in implementations of the disclosure, the window position inthe small window mode and the flash window mode may be readjusted by theuser. For example, the user may select the window and then drag thewindow to another position, etc.

In another implementation, in addition to the touch operation performedon the touch display screen, the first gesture may also be an airgesture. For example, when the first gesture is decomposed into thefirst gesture-segment and the second gesture-segment, the firstgesture-segment and the second gesture-segment may also be air gestures.The first gesture-segment and the second gesture-segment having acontinuous gesture trajectory may include: the first gesture-segment andthe second gesture-segment having a continuous air gesture trajectory.That is, the air gesture made by the user is also a coherent gesture.

Implementations of the disclosure may further include the following.

A displayed running interface of the target application is scaled downgradually, from receiving the first gesture until the first gestureends.

For example, the preset trigger gesture is a slide-up operation startingfrom the bottom of the touch display screen, and the length of the slidetrajectory is greater than or equal to the first preset length. Then, asillustrated in FIG. 5 , when the finger of the user slides up fromposition B at the bottom of the touch display screen to position C andthen slides left to position D, the running interface of car-hailingapplication Y displayed by the electronic device can be gradually scaleddown. For example, the process of gradually scaling down the runninginterface of car-hailing application Y can be as illustrated in FIG. 9 .For example, as illustrated in FIG. 9 , when the finger of the userslides up from position B at the bottom of the touch display screen,passes through position F (see the position of the black dot in FIG. 9 )and position C, and then slides left to position D, the runninginterface of car-hailing application Y displayed by the electronicdevice can be gradually scaled down.

In an implementation, the electronic device may gradually scale down thedisplayed running interface of the target application as follows. Theelectronic device gradually scales down the displayed running interfaceof the target application to a preset size. That is, the electronicdevice may no longer scale down the running interface of the targetapplication when the running interface is scaled down to the presetsize.

In an implementation, as illustrated in FIG. 9 , when gradually scalingdown the running interface of the target application, the electronicdevice may move the gradually scaled down running interface in a presetdirection. For example, when the preset trigger gesture is a slide-upoperation starting from the bottom of the touch display screen, and thelength of the slide trajectory is greater than or equal to the firstpreset length, the gradually scaled down running interface can be movedtowards the upper half of the display screen. For another example, whenthe preset trigger gesture is a slide-down operation starting from thetop of the touch display screen, and the length of the slide trajectoryis greater than or equal to the first preset length, the graduallyscaled down running interface can be moved towards the lower half of thedisplay screen.

Implementations of the disclosure may further include the following.

The electronic device displays at a preset position of the touch displayscreen a preview of a window mode represented by an icon, on conditionthat the first gesture pauses at a display position of the icon, beforethe first gesture ends.

For example, when the finger of the user slides to position D for apause but still does not leave the touch display screen, the electronicdevice may display at the preset position of the touch display screenthe preview of the first window mode represented by the first icon. Forexample, as illustrated in FIG. 10 , the electronic device may displayin the middle of the upper half (i.e., the preset position) of thedisplay screen the preview of displaying the running interface ofcar-hailing application Y in the small window mode.

For another example, when the finger of the user slides from position Dto position E for a pause but still does not leave the touch displayscreen, the electronic device may display at the preset position of thetouch display screen the preview of the second window mode representedby the second icon. For example, as illustrated in FIG. 11 , theelectronic device may display in the middle of the upper half (i.e., thepreset position) of the display screen the preview of displaying thelatest notification information of car-hailing application Y in theflash window mode.

It should be noted that, when the first gesture is a touch operationperformed on the touch display screen, the end of the first gesture mayrefer to an event where the electronic device detects that the finger ofthe user leaves the touch display screen. For example, as illustrated inFIG. 5 , the finger of the user slides from position B on the touchdisplay screen, passes through position C, and leaves the touch displayscreen when sliding to position D. Then, the electronic device detectsthat the first gesture ends upon detecting that the finger of the userleaves the touch display screen from position D.

When the first gesture is an air gesture, for example, for an airgesture recognition technology where the palm movement of the user isdetected with a camera, the recognition process of detecting the airgesture with a camera generally includes gesture image capture, gesturesegmentation, gesture feature extraction, and gesture detection. Then,the end of the first gesture may refer to that the electronic devicecaptures with the camera an action of the user putting his or her palmdown. For example, when making an air gesture, the user needs to raisehis palm and make a motion. When the action of the user putting the palmdown is captured, the air gesture can be considered to be completed.

It can be understood that, in implementations of the disclosure, asillustrated in FIGS. 5 and 7 , the whole process for the electronicdevice to enter the small window mode (corresponding to the gestureoperation starting from position B, passing through position C, andending at position D) or the flash window mode (corresponding to thegesture operation starting from position B, passing through position C,and ending at position E) is completed in one go. That is, it only takesone step to switch to the corresponding window mode, with high operationefficiency and good user experience.

Implementations of the disclosure may further include the following.

Information of a second gesture is received. Specifically, the secondgesture is received.

A multi-task management interface is entered, on condition that a motionof the second gesture is the same as the motion of the preset triggergesture and a trajectory length of the second gesture is less than thefirst preset length and greater than a second preset length.

For example, the preset trigger gesture is a slide-up operation startingfrom the bottom of the touch display screen, and the length of the slidetrajectory is greater than or equal to the first preset length. If thesecond gesture received by the electronic device is also a slide-upoperation (that is, the motion of the second gesture is the same as themotion of the preset trigger gesture), and the trajectory length of thesecond gesture is less than the first preset length and greater than thesecond preset length, for example, the trajectory length correspondingto the slide-up operation of the finger of the user is between thesecond preset length and the first preset length, and then the finger ofthe user leaves the touch display screen, the electronic device canenter the multi-task management interface.

For example, the preset trigger gesture is a slide-up operation startingfrom the bottom of the touch display screen, and the length of the slidetrajectory is greater than or equal to the first preset length. Asillustrated in FIG. 12 , the finger of the user slides up from positionB at the bottom of the touch display screen to the G position, but thelength of the slide trajectory between position B and position G isbetween the second preset length and the first preset length. Aftersliding to position G, the finger of the user leaves the touch displayscreen. At this time, the multi-task management interface can beentered.

It can be understood that, multiple responses to a same gesture can berealized in the above-mentioned manner. That is, for a same motion, theelectronic device can respond differently for different gesturetrajectory lengths. For example, for a same slide-up gesture, when thetrajectory length of the slide-up gesture is greater than or equal tothe first preset length, the electronic device may display the firsticon and the second icon, and when the trajectory length of the slide-upgesture is less than the first preset length and greater than or equalto the second preset length, the electronic device can enter themulti-task management interface.

In an implementation, after displaying the information of the targetapplication in the target window mode, the electronic device may returnto the desktop. For example, in FIG. 6 , after displaying the runninginterface of car-hailing application Y in the small window mode, theelectronic device displays the desktop interface in the area other thanthe small window on the touch display screen. For another example, inFIG. 8 , after displaying the latest notification information ofcar-hailing application Y in the flash window mode, the electronicdevice displays the desktop interface in the area other than the flashwindow on the touch display screen.

Referring to FIG. 13 , FIG. 13 is a schematic structural diagram of anapparatus for device control provided in implementations of thedisclosure. The apparatus for device control may be applied to anelectronic device with a touch display screen. The apparatus for devicecontrol 300 may include: a first receiving module 301, a first displaymodule 302, a second receiving module 303, a determining module 304, anda second display module 305.

The first receiving module 301 is configured to receive information of afirst gesture. The first display module 302 is configured to display atleast one icon on condition that the first gesture includes a presettrigger gesture, where each icon represents one window mode. The secondreceiving module 303 is configured to obtain a gesture end position ofthe first gesture. The determining module 304 is configured to determinea window mode represented by an icon as a target window mode, upondetecting that the gesture end position of the first gesture is at adisplay position of the icon. The second display module 305 isconfigured to obtain information of a target application, and displaythe information of the target application in the target window mode,where the target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

In an implementation, the first gesture includes a first gesture-segmentand a second gesture-segment, the first gesture-segment occurs beforethe second gesture-segment, the first gesture-segment and the secondgesture-segment have a continuous gesture trajectory, and then the firstgesture including the preset trigger gesture may include: the firstgesture-segment matching the preset trigger gesture.

In an implementation, the icon displayed by the electronic deviceincludes at least a first icon, and a first window mode represented bythe first icon includes: determining a first target area on the touchdisplay screen, and displaying in the first target area a scaled downrunning interface of the target application.

In an implementation, the icon displayed by the electronic devicefurther include at least a second icon, and a second window moderepresented by the second icon includes: determining a second targetarea on the touch display screen, and displaying in the second targetarea the information of the target application, where an area of thesecond target area is smaller than an area of the first target area.

In an implementation, the second window mode represented by the secondicon includes: determining the second target area on the touch displayscreen, and displaying in the second target area customized informationof the target application.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture include a touch operation performedon the touch display screen, and then the first gesture-segment and thesecond gesture-segment having the continuous gesture trajectory mayinclude: the first gesture-segment and the second gesture-segment havinga continuous touch trajectory on the touch display screen.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture each include an air gesture, andthen the first gesture-segment and the second gesture-segment having thecontinuous gesture trajectory may include: the first gesture-segment andthe second gesture-segment having a continuous air gesture trajectory.

In an implementation, the first display module 302 may be configured to:determine that the first gesture-segment matches the preset triggergesture and display the at least one icon, on condition that a motion ofthe first gesture-segment is the same as a motion of the preset triggergesture and a trajectory length of the first gesture-segment is greaterthan or equal to a first preset length.

In an implementation, the preset trigger gesture starts at an edge ofthe touch display screen.

In an implementation, the second display module 305 may be furtherconfigured to: scale down a displayed running interface of the targetapplication to a preset size gradually, from receiving the first gestureuntil the first gesture ends.

In an implementation, the second display module 305 may be furtherconfigured to: move the gradually scaled down running interface of thetarget application in a preset direction.

In an implementation, the second display module 305 may be furtherconfigured to: display at a preset position of the touch display screena preview of a window mode represented by an icon, on condition that thefirst gesture pauses at a display position of the icon, before the firstgesture ends.

In an implementation, the second display module 305 may be furtherconfigured to: receive information of a second gesture, and enter amulti-task management interface, on condition that a motion of thesecond gesture is the same as the motion of the preset trigger gestureand a trajectory length of the second gesture is less than the firstpreset length and greater than a second preset length.

Implementations of the disclosure provide a computer-readable storagemedium storing computer programs, which when executed on a computer,cause the computer to perform the method for device control provided inimplementations.

Implementations of the disclosure further provide an electronic device.The electronic device includes a memory and a processor. The processoris configured to invoke computer programs stored in the memory toperform the method for device control provided in implementations.

For example, the electronic device may be a mobile terminal such as atablet computer or a smart phone. Referring to FIG. 14 , FIG. 14 is aschematic structural diagram of an electronic device provided inimplementations of the disclosure.

The electronic device 400 may include a touch display screen 401, amemory 402, a processor 403, and other components. Those skilled in theart can understand that the structure of the electronic deviceillustrated in FIG. 14 does not constitute any limitation on theelectronic device. The electronic device may include more or fewercomponents than illustrated or may combine certain components ordifferent components.

The touch display screen 401 may be configured to display informationsuch as text, images, etc., and may be further configured to receive atouch operation of the user.

The memory 402 may be configured to store application programs and data.The application programs stored in the memory 402 contains executablecodes. The application programs may compose various functional modules.The processor 403 is configured to implement various functionalapplications and data processing by executing the application programsstored in the memory 402.

The processor 403 is the control center of the electronic device,connects various parts of the entire electronic device with variousinterfaces and lines, and is configured to implement various functionsand data processing of the electronic device by running or executing theapplication programs stored in the memory 402 and by invoking the datastored in the memory 402, thereby monitoring the electronic device as awhole.

In these implementations, the processor 403 in the electronic deviceloads executable codes corresponding to the process of one or moreapplication programs into the memory 402 according to the followinginstructions, and the processor 403 is configured to execute theapplication programs stored in the memory 402 to: receive information ofa first gesture, display at least one icon on condition that the firstgesture includes a preset trigger gesture, where each icon representsone window mode, obtain a gesture end position of the first gesture,determine a window mode represented by an icon as a target window mode,upon detecting that the gesture end position of the first gesture is ata display position of the icon, and obtain information of a targetapplication, and display the information of the target application inthe target window mode, where the target application is an applicationcorresponding to information displayed on the touch display screen whenthe first gesture is received.

Referring to FIG. 15 , the electronic device 400 may include a touchdisplay screen 401, a memory 402, a processor 403, a battery 404, aspeaker 405, a microphone 406, etc.

The touch display screen 401 may be configured to display informationsuch as text, images, etc., and may be further configured to receive atouch operation of the user.

The memory 402 may be configured to store application programs and data.The application programs stored in the memory 402 contains executablecodes. The application programs may compose various functional modules.The processor 403 is configured to implement various functionalapplications and data processing by executing the application programsstored in the memory 402.

The processor 403 is the control center of the electronic device, usesvarious interfaces and lines to connect various parts of the entireelectronic device, and implements various functions and data processingof the electronic device by running or executing the applicationprograms stored in the memory 402 and by invoking the data stored in thememory 402, thereby monitoring the electronic device as a whole.

The battery 404 can provide power support for respective components andmodules of the electronic device, thereby ensuring the normal operationof the components and modules.

The speaker 405 may be configured to play a sound signal. For example,the speaker 405 plays a sound signal in a multimedia image.

The microphone 406 may be configured to collect a sound signal in thesurrounding environment. For example, the microphone 406 may beconfigured to collect the voice of the user, and convert the collectedvoice into a corresponding voice signal.

In these implementations, the processor 403 in the electronic deviceloads executable codes corresponding to the process of one or moreapplication programs into the memory 402 according to the followinginstructions, and the processor 403 executes the application programsstored in the memory 402 to: receive information of a first gesture,display at least one icon on condition that the first gesture includes apreset trigger gesture, where each icon represents one window mode,obtain a gesture end position of the first gesture, determine a windowmode represented by an icon as a target window mode, upon detecting thatthe gesture end position of the first gesture is at a display positionof the icon, and obtain information of a target application, and displaythe information of the target application in the target window mode,where the target application is an application corresponding toinformation displayed on the touch display screen when the first gestureis received.

In an implementation, the first gesture includes a first gesture-segmentand a second gesture-segment, the first gesture-segment occurs beforethe second gesture-segment, the first gesture-segment and the secondgesture-segment have a continuous gesture trajectory, and the firstgesture including the preset trigger gesture may include: the firstgesture-segment matching the preset trigger gesture.

In an implementation, the icon displayed by the electronic deviceincludes at least a first icon, and a first window mode represented bythe first icon includes: determining a first target area on the touchdisplay screen, and displaying in the first target area a scaled downrunning interface of the target application.

In an implementation, the icon displayed by the electronic devicefurther include at least a second icon, and a second window moderepresented by the second icon includes: determining a second targetarea on the touch display screen, and displaying in the second targetarea the information of the target application, where an area of thesecond target area is smaller than an area of the first target area.

In an implementation, the second window mode represented by the secondicon includes: determining the second target area on the touch displayscreen, and displaying in the second target area customized informationof the target application.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture include a touch operation performedon the touch display screen, and then the first gesture-segment and thesecond gesture-segment having the continuous gesture trajectory mayinclude: the first gesture-segment and the second gesture-segment havinga continuous touch trajectory on the touch display screen.

In an implementation, the first gesture-segment and the secondgesture-segment of the first gesture each include an air gesture, andthen the first gesture-segment and the second gesture-segment having thecontinuous gesture trajectory may include: the first gesture-segment andthe second gesture-segment having a continuous air gesture trajectory.

In an implementation, the processor 403 configured to display the atleast one icon on condition that the first gesture-segment matches thepreset trigger gesture is configured to: determine that the firstgesture-segment matches the preset trigger gesture and display the atleast one icon, on condition that a motion of the first gesture-segmentis the same as a motion of the preset trigger gesture and a trajectorylength of the first gesture-segment is greater than or equal to a firstpreset length.

In an implementation, the preset trigger gesture starts at an edge ofthe touch display screen.

In an implementation, the processor 403 may be further configured to:scale down a displayed running interface of the target application to apreset size gradually, from receiving the first gesture until the firstgesture ends.

In an implementation, the processor 403 may be further configured to:move the gradually scaled down running interface of the targetapplication in a preset direction.

In an implementation, the processor 403 may be further configured to:display at a preset position of the touch display screen a preview of awindow mode represented by an icon, on condition that the first gesturepauses at a display position of the icon, before the first gesture ends.

In an implementation, the processor 403 may be further configured to:receive information of a second gesture, and enter a multi-taskmanagement interface, on condition that a motion of the second gestureis the same as the motion of the preset trigger gesture and a trajectorylength of the second gesture is less than the first preset length andgreater than a second preset length.

In the above-mentioned implementations, the description of eachimplementation has its own emphasis. For parts that are not described indetail in a certain implementation, reference may be made to thedescription of the method for device control above, which will not berepeated herein.

The apparatus for device control provided in implementations of thedisclosure and the method for device control in above implementationsbelong to a same concept, and any method provided in implementations ofthe method for device control can be executed on the apparatus fordevice control. For details of implementations, reference may be made toimplementations of the method for device control, which will not berepeated herein.

It should be noted that, for the method for device control described inimplementations of the disclosure, it can be understood by those ofordinary skill in the art that all or part of the process forimplementing the method for device control described in implementationsof the disclosure can be accomplished by controlling the relevanthardware using computer programs. The computer programs may be stored ina computer-readable storage medium, such as a memory, and executed by atleast one processor, and the execution process may include a process asdescribed in implementations of the method for device control. Thestorage medium may be a magnetic disk, an optical disk, a read onlymemory (ROM), a random access memory (RAM), etc.

For the apparatus for device control in implementations of thedisclosure, functional modules of the apparatus can be integrated in aprocessing chip, or physically and separately exist in the apparatus,and two or more modules of the apparatus can be integrated in a singlemodule. The integrated module can be implemented in a form of hardwareor in a form of software function module. If implemented in a form of asoftware function module, the integrated module may be sold or used as astand-alone product, and may also be stored in a computer-readablestorage medium, such as a ROM, a magnetic disk, or an optical disk, etc.

The method and the apparatus for device control, the storage medium, andthe electronic device provided in implementations of the disclosure havebeen described in detail above. The principles and implementations ofthe disclosure are described with specific examples. The description ofthe above implementations are only used to help understand the methodand its core idea. For those skilled in the art, according to theconception of the disclosure, specific implementations and applicationscopes of the disclosure can be varied in certain aspects. Inconclusion, the contents of this specification should not be understoodas a limitation of the disclosure.

What is claimed is:
 1. A method for device control, being applied to anelectronic device with a touch display screen and comprising: receivinga first gesture, the first gesture matching a preset trigger gesture;displaying at least one icon on the touch display screen, each iconrepresenting one window mode; obtaining an end position of the firstgesture; determining a window mode represented by a target icon in theat least one icon as a target window mode, upon detecting that the endposition of the first gesture is at a display position of the targeticon; and obtaining information of a target application, and displayingthe information of the target application in the target window mode, thetarget application being an application corresponding to informationdisplayed on the touch display screen when the first gesture isreceived.
 2. The method of claim 1, wherein the first gesture comprisesa first gesture-segment and a second gesture-segment, the firstgesture-segment occurs before the second gesture-segment, the firstgesture-segment and the second gesture-segment have a continuous gesturetrajectory, and the first gesture matches the preset trigger gesturewhen the first gesture-segment matches the preset trigger gesture. 3.The method of claim 1, wherein the at least one icon comprises a firsticon, the target icon is the first icon, the first icon represents afirst window mode, and displaying the information of the targetapplication in the target window mode comprises: displaying, in a firsttarget area corresponding to the first window mode, a scaled downrunning interface of the target application in the first window mode. 4.The method of claim 1, wherein the at least one icon comprises a firsticon and a second icon, the target icon is the second icon, the firsticon represents a first window mode, the second icon represents a secondwindow mode, and displaying the information of the target application inthe target window mode comprises: displaying, in a second target areacorresponding to the second window mode, the information of the targetapplication in the second window mode, wherein an area of the secondtarget area is smaller than an area of a first target area correspondingto the first window mode.
 5. The method of claim 4, wherein displayingthe information of the target application in the target window modecomprises: displaying, in the second target area corresponding to thesecond window mode, customized information of the target application inthe second window mode.
 6. The method of claim 2, wherein the firstgesture-segment and the second gesture-segment are each touch operationsperformed on the touch display screen, and the first gesture-segment andthe second gesture-segment having the continuous gesture trajectorycomprises: the first gesture-segment and the second gesture-segmenthaving a continuous touch trajectory on the touch display screen.
 7. Themethod of claim 2, wherein the first gesture-segment and the secondgesture-segment are each air gestures, and the first gesture-segment andthe second gesture-segment having the continuous gesture trajectorycomprises: the first gesture-segment and the second gesture-segmenthaving a continuous air gesture trajectory.
 8. The method of claim 2,wherein the first gesture-segment matches the preset trigger gesturewhen a motion of the first gesture-segment is the same as a motion ofthe preset trigger gesture and a trajectory length of the firstgesture-segment is greater than or equal to a first preset length. 9.The method of claim 8, wherein the preset trigger gesture starts at anedge of the touch display screen.
 10. The method of claim 1, furthercomprising: scaling down a displayed running interface of the targetapplication to a preset size gradually, from receiving the first gestureuntil the first gesture ends.
 11. The method of claim 10, furthercomprising: moving the gradually scaled down running interface of thetarget application in a preset direction.
 12. The method of claim 1,further comprising: displaying at a preset position of the touch displayscreen a preview of a window mode represented by an icon, on conditionthat the first gesture pauses at a display position of the icon, beforethe first gesture ends.
 13. The method of claim 8, further comprising:receiving a second gesture; and entering a multi-task managementinterface, on condition that a motion of the second gesture is the sameas the motion of the preset trigger gesture and a trajectory length ofthe second gesture is less than the first preset length and greater thana second preset length.
 14. An electronic device comprising: a touchdisplay screen; a memory configured to store computer programs; and aprocessor configured to execute the computer programs to: receive afirst gesture, the first gesture matching a preset trigger gesture;display at least one icon on the touch display screen, each iconrepresenting one window mode; obtain an end position of the firstgesture; determine a window mode represented by a target icon in the atleast one icon as a target window mode, upon detecting that the endposition of the first gesture is at a display position of the targeticon; and obtain information of a target application, and display theinformation of the target application in the target window mode, thetarget application being an application corresponding to informationdisplayed on the touch display screen when the first gesture isreceived.
 15. The electronic device of claim 14, wherein the firstgesture comprises a first gesture-segment and a second gesture-segment,the first gesture-segment occurs before the second gesture-segment, thefirst gesture-segment and the second gesture-segment have a continuousgesture trajectory, and the first gesture matches the preset triggergesture when the first gesture-segment matches the preset triggergesture.
 16. The electronic device of claim 14, wherein the at least oneicon comprises a first icon, the target icon is the first icon, thefirst icon represents a first window mode, and the processor configuredto display the information of the target application in the targetwindow mode is configured to: display, in a first target areacorresponding to the first window mode, a scaled down running interfaceof the target application in the first window mode.
 17. The electronicdevice of claim 14, wherein the at least one icon comprises a first iconand a second icon, the target icon is the second icon, the first iconrepresent a first window mode, the second icon represents a secondwindow mode, and the processor configured to display the information ofthe target application in the target window mode is configured to:display, in a second target area corresponding to the second windowmode, the information of the target application in the second windowmode, wherein an area of the second target area is smaller than an areaof a first target area corresponding to the first window mode.
 18. Theelectronic device of claim 17, wherein the processor configured todisplay the information of the target application in the target windowmode is configured to: display, in the second target area correspondingto the second window mode, customized information of the targetapplication in the second window mode.
 19. The electronic device ofclaim 15, wherein the first gesture-segment and the secondgesture-segment are each touch operations performed on the touch displayscreen, and the first gesture-segment and the second gesture-segmenthaving the continuous gesture trajectory comprises: the firstgesture-segment and the second gesture-segment having a continuous touchtrajectory on the touch display screen.
 20. A computer-readable storagemedium storing computer programs, which when executed by a computer,causes the computer to implement steps, comprising: receiving a firstgesture, the first gesture matching a preset trigger gesture; displayingat least one icon on the touch display screen, each icon representingone window mode; obtaining an end position of the first gesture;determining a window mode represented by a target icon in the at leastone icon as a target window mode, upon detecting that the end positionof the first gesture is at a display position of the target icon; andobtaining information of a target application, and displaying theinformation of the target application in the target window mode, thetarget application being an application corresponding to informationdisplayed on the touch display screen when the first gesture isreceived.